<template>
  <div class="MainPage">
    <div>这里是详情页</div>
    <div>{{ $store.state.show }}</div>
  </div>
</template>
<script>
  import store from '../store/store'

  export default {
    name: 'MainPage',
    data () {
      return {
        name: 'dierye'
      }
    },
    store,
    mounted () {
      this.init()
    },
    methods: {
      init: function () {
        console.log(store.state.helloWorldState.clicked)
      }
    }
  }
</script>
<style lang="less">

</style>
